import React, {Component} from 'react'
import { View, Platform } from 'react-native'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import { reducers } from './reducers'
import MainLayout from './views'
import thunkMiddleware from 'redux-thunk'

const store = createStore(reducers, applyMiddleware(thunkMiddleware))

export default class App extends Component {
  render() {
    return (
      <Provider store={store}>
        <View>
          <MainLayout />
        </View>
      </Provider>
    );
  }
}

